package by.kniazhych.core.server.local.core {
	import by.kniazhych.core.data.game.PeacePosition;
	import by.kniazhych.core.server.local.rules.IPlayer;
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	
	
	
	public class Motion implements IMotion {
		
		private var _sP:PeacePosition;
		private var _fP:PeacePosition;
		
		public function Motion(sP:PeacePosition, fP:PeacePosition) {
			_fP = fP;
			_sP = sP;
		}
		
		public function toString():String {
			return _sP.x.toString() + _sP.y.toString() + ":" + _fP.x.toString() + _fP.y.toString();
		}
		
		/* INTERFACE by.kniazhych.core.server.local.core.IMotion */
		
		public function get sP():PeacePosition{
			return _sP;
		}
		
		public function get fP():PeacePosition{
			return _fP;
		}
		
	}

}